#include "DbConnection.h"
#include <QtSql>



DbConnection::DbConnection()
{
	printf("connecting to db\n");
	QSqlDatabase db = QSqlDatabase::addDatabase("QPSQL");
	db.setHostName("localhost");
	db.setDatabaseName("vidipedi");
	db.setUserName("postgres");
	db.setPassword("nugise71");
	bool ok = db.open();
	if (ok)
		printf("ok\n");
}

DbConnection::~DbConnection()
{
}



